package com.guli.mall.pms.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guli.common.utils.PageUtils;
import com.guli.common.utils.Query;

import com.guli.mall.pms.mapper.SpuCommentMapper;
import com.guli.mall.pms.entity.SpuCommentEntity;
import com.guli.mall.pms.service.SpuCommentService;


@Service("spuCommentService")
public class SpuCommentServiceImpl extends ServiceImpl<SpuCommentMapper, SpuCommentEntity> implements SpuCommentService {

    @Override
    public PageUtils queryPage(Integer currentPage,Integer size) {

        Page<SpuCommentEntity> page = new Page<>(currentPage,size);

        Page<SpuCommentEntity> resultPage = this.page(page);


        return new PageUtils(resultPage);
    }

}